package cn.itcast.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.itcast.mapper.UserMapper;
import cn.itcast.pojo.TbUser;
import cn.itcast.service.UserService;
@Service
public class UserServiceimpl implements UserService {
	//注入借口代理对象
	@Autowired
	private UserMapper userMapper;

	@Override
	public List<TbUser> findAll() {
		List<TbUser> list = userMapper.findAll();
		return list;
	}

}
